<?php
	/**
	 * @package AmpleHarvest
	 */
	use ampleharvest\code\usermanager\tables\cTABLE_Applications;
   use\ampleharvest\code;
	/**
	 * Includes Path Info Class
	 */
	require_once dirname(dirname(dirname(__FILE__))) . '/config/cConfig.php';
	require_once  'Tables/cTABLE_Applications.php';
	
	$config = new \ampleharvest\code\cConfig();
	if (file_exists($config->C_STR_USER_MANAGER_PATH . "/Classes/cUserValidation_PKI.php")){
	   require_once $config->C_STR_USER_MANAGER_PATH . "/Classes/cUserValidation_PKI.php";
	   
	   class cUserValidation extends cUserValidation_PKI
	   {
	   	/**
	   	 * Sets up default information about the login procedures
	   	 */
	   	public function __construct()
	   	{
	   		parent::__construct();
	   
	   		$this->m_bool_GodActive = true;
	   		$this->m_str_LoginURL = cCodeInfo::c_BaseURL . "Login.php";
	   		$this->set_ApplicationID(cTABLE_Applications::C_STR_APPLICATION_AMPLE_HARVEST) ;
	   	}
	   }
	   
	} else
	{
		
		/**
		 * Include abstract user Validation class
		 */
		require_once $config->C_STR_USER_MANAGER_LIB_PATH . "/Abstract_Classes/abs_UserValidation.php";
	
		/**
		 * @brief This class extends the abs_UserValidation class
		 * It holds specific instructions on how login for AmpleHarvest Should be handled
		 *
		 * - Revision History
		 *  - 0.1
		 * 	 - <b>Date</b>: 25 FEB 2011
		 * 	 - <b>Author</b>: Randy Blancett
		 * 	  - Initial Version
		 *
		 * @author Randy Blancett
		 * @version 0.1
		 * @ingroup code classes user_manager
		 */
		if (!class_exists("cUserValidation"))
		{
			class cUserValidation extends abs_UserValidation
			{
				/**
				 * Sets up default information about the login procedures
				 */
				public function __construct()
				{
					parent::__construct();
	
					$this->m_bool_GodActive = true;
					$this->m_str_LoginURL = cCodeInfo::c_BaseURL . "Login.php";
					$this->set_ApplicationID(cTABLE_Applications::C_STR_APPLICATION_AMPLE_HARVEST) ;
				}
			}
		}
	}
?>